package com.kgc.sbt.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * order_main
 * @author 
 */
@Data
// @ApiModel(value = "com.kgc.sbt.beans.OrderMain订单主表表")
public class OrderMain<T> implements Serializable {
    /**
     * 订单id
     */
    @ApiModelProperty(value="订单主表id")
    private Integer orderId;

    /**
     * 订单编号
     */
    @ApiModelProperty(value="订单编号")
    private String orderNum;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Integer userId;

    /**
     * 订单详情
     */
    @ApiModelProperty(value="订单详情")
    private T orderDetail;

    /**
     * 收货人姓名
     */
    @ApiModelProperty(value="收货人姓名")
    private String receiverName;

    /**
     * 收货人联系方式
     */
    @ApiModelProperty(value="收货人联系方式")
    private String receiverPhone;

    /**
     * 省份
     */
    @ApiModelProperty(value="省份")
    private String receiverProvince;

    /**
     * 城市
     */
    @ApiModelProperty(value="城市")
    private String receiverCity;

    /**
     * 区/县
     */
    @ApiModelProperty(value="区/县")
    private String receiverDistrict;

    /**
     * 详细地址
     */
    @ApiModelProperty(value="详细地址")
    private String receiverAddress;

    /**
     * 支付方式
     */
    @ApiModelProperty(value="支付方式")
    private String payType;

    /**
     * 订单金额
     */
    @ApiModelProperty(value="订单金额")
    private String orderAmount;

    /**
     * 优惠券优惠金额
     */
    @ApiModelProperty(value="优惠券优惠金额")
    private String couponsAmount;

    /**
     * 会员优惠金额-九折
     */
    @ApiModelProperty(value="会员优惠金额-九折")
    private String vipAmount;

    /**
     * 运费金额
     */
    @ApiModelProperty(value="运费金额")
    private String freight;

    /**
     * 支付金额
     */
    @ApiModelProperty(value="支付金额")
    private String payAmount;

    /**
     * 物流id
     */
    @ApiModelProperty(value="物流id")
    private Integer logisticsId;

    /**
     * 下单时间
     */
    @ApiModelProperty(value="下单时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /**
     * 支付时间
     */
    @ApiModelProperty(value="支付时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 订单状态
     */
    @ApiModelProperty(value="订单状态")
    private Integer orderStatus;

    /**
     * 订单积分
     */
    @ApiModelProperty(value="订单积分")
    private String orderIntegral;

    private static final long serialVersionUID = 1L;
}